package com.example.mannortycoon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("trade")
public class TradeEntity {

    @TableId
    private Long id;

    //上架时间
    private Date availabilityTime;

    //用户ID
    private Long userId;

    //作物ID
    private Long cropId;

    //数量
    private Integer number;

    //价格
    private Double sellPrice;

    //价格类型（0：种子币  1：珍珠）
    private Integer sellType;
}
